package 策略模式;



public class Fun {
    private Action action;

    public Fun(Action action) {
        this.action = action;
    }

    public void sun(){
        System.out.println(1);
        System.out.println(2);
        System.out.println(3);
        action.workFour();
        System.out.println(5);
        System.out.println(6);
        action.workSeven();
    }
}
